package com.wenhai.spring.validation;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class UserLogin {
    @NotNull
    private String userName;
    @Size
    private String password;


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
